package com.example.sys.mapper;

import com.example.sys.entity.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 角色信息表 Mapper 接口
 * </p>
 *
 * @author anan
 * @since 2019-06-17
 */
public interface RoleMapper extends BaseMapper<Role> {
    List<Role> findRoleByLoginName(String loginName);
    List<Role> findRoleByUserId(Long userId);

    List<RoleMenu> getMenuList(Long roleId);

    List<UserRole> getUserList(Long roleId);

    List<RoleDept> getDeptList(Long roleId);
}
